﻿using System;
using CompactMapper.Orm.Contracts;

namespace CompactMapper.Orm.UnitOfWork.Mappings
{
    public class LongKeyFactory : IKeyFactory
    {
        public IKey Empty
        {
            get { return LongKey.EmptyLongKey; }
        }

        public IKey Hidrate(object key)
        {
            return new LongKey((long)key);
        }

        public IKey New()
        {
            return Empty;
        }
    }
}